package cn.gok.day5;

/**
 * @ClassName Pet
 * @Description TODO
 * @Author HP
 * @Date 7:17 2022/7/9
 * @Version 1.0
 *  * 3  【提高】创建类 Pet: String name(宠物的名字) ,int feetCount（脚的个数）
 **/
public class Pet {
    private String name;
    private int feetCount;

    public Pet() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getFeetCount() {
        return feetCount;
    }

    public void setFeetCount(int feetCount) {
        this.feetCount = feetCount;
    }

    public Pet(String name, int feetCount) {
        this.name = name;
        this.feetCount = feetCount;
    }
    @Override
    public String toString() {
        return "Pet{" +
                "name='" + name + '\'' +
                ", feetCount=" + feetCount +
                '}';
    }
}
